import request from "@/router/axios";

export const getList = (current, size, params) => {
  return request({
    url: "/api/hg-quality/reviewcontent/list",
    method: "get",
    params: {
      current,
      size,
      ...params
    }
  });
};
// 评审类型列表
export const getReviewTypeList = () => {
  return request({
    url: "/api/hg-quality/reviewcontent/reviewTypeList",
    method: "get"
  });
};

export const getReviewContentList = type => {
  return request({
    url: "/api/hg-quality/reviewcontent/reviewContentList",
    method: "get",
    params: { type }
  });
};

export const save = data => {
  return request({
    url: "/api/hg-quality/reviewcontent/save",
    method: "post",
    data
  });
};

export const update = data => {
  return request({
    url: "/api/hg-quality/reviewcontent/update",
    method: "post",
    data
  });
};

export const getDetail = id => {
  return request({
    url: "/api/hg-quality/reviewcontent/detail",
    method: "post",
    params: { id }
  });
};

export const remove = ids => {
  return request({
    url: "/api/hg-quality/reviewcontent/remove",
    method: "post",
    params: { ids }
  });
};
